#pragma once

#include "TG_NetSDK.h"
#include "TG_SvrNetSDK.h"

class TransMan;
class TransRealStream
{
public:
	TransRealStream(TransMan *pTransMan);
	~TransRealStream(void);

public:
	int  Initialize();
	void UnInitialize();

public:
	int StartRealStream( TG_SVR_RS_INFO *pRsInfo );
	int StopRealStream();
	int AddItem( TG_SVR_RS_INFO *pRsInfo );
	int GetItemCount(UINT16 &nCount);

private:
	static BOOL CALLBACK RealDataCallBack(VOID *pBufferData, UINT32 nBufSize, UINT32 nContext, void *pContext);
	BOOL RealStreamData(VOID *pBufferData, UINT32 nBufSize);


public:
	TG_DEV_INFO m_xDevInfo;

private:
	TransMan *m_pTransMan;

private:
	TGHANDLE m_hRealStream;

private:
	TGHANDLE m_hTransCamera; 

private:
	std::vector<TG_SVR_RS_INFO>m_arTransItem;

};
